#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# 检查提交信息格式，要求至少5个字符
commit_msg=$(cat "$1")
min_length=5

if [ ${#commit_msg} -lt $min_length ]; then
  echo "提交信息太短，至少需要 $min_length 个字符"
  exit 1
fi 